package com.mdhw.wechat.controller;

import com.mdhw.common.annotation.IgnorePermissions;
import com.mdhw.config.R;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@Api(tags = "微信")
@RequestMapping("wechat")
public class WechatController {


    @IgnorePermissions
    @GetMapping("/post/xiaoxiTuisongAuth")
    public String xiaoxiTuisongAuth(
            @RequestParam(value = "signature",required = true)String signature,
            @RequestParam(value = "echostr",required = true)String echostr,
            @RequestParam(value = "timestamp",required = true)String timestamp,
            @RequestParam(value = "nonce",required = true)String nonce
    ){
        log.info("signature  {}   ",signature);
        log.info("echostr  {}   ",echostr);
        log.info("timestamp  {}   ",timestamp);
        log.info("nonce  {}   ",nonce);
        return "khz "+echostr;
    }
}
